Skip to content

ci: Send Slack notification when scheduled e2e tests fail#1859

Merged
vdusek merged 1 commit intomasterfrom
ci/slack-notify-scheduled-e2e-failures
Apr 29, 2026
Merged

ci: Send Slack notification when scheduled e2e tests fail#1859
vdusek merged 1 commit intomasterfrom
ci/slack-notify-scheduled-e2e-failures

Conversation

@vdusek
Copy link
Copy Markdown
Collaborator

@vdusek vdusek commented Apr 27, 2026

Summary

Closes #1725.

Adds a notify_on_failure job to on_schedule_tests.yaml that posts to #tooling-team-python whenever the daily scheduled e2e tests fail. The message includes a link to the workflow run and a bulleted list of the failed matrix combinations. Manual workflow_dispatch runs are intentionally skipped so ad-hoc triggers don't spam the channel.

Implementation notes

  • Uses slackapi/[email protected] with webhook-type: incoming-webhook.
  • Webhook URL is read from a new repository secret SLACK_WEBHOOK_URL — needs to be configured before this PR has any effect.
  • The list of failed matrix jobs is fetched via gh api .../actions/runs/{run_id}/attempts/{run_attempt}/jobs (uses the existing GITHUB_TOKEN with actions: read).
  • Job runs only on failure() && github.event_name == 'schedule'.

Setup checklist

  • Create an incoming webhook for #tooling-team-python in Slack.
  • Add the URL as the SLACK_WEBHOOK_URL repository secret.

Adds a notify_on_failure job to the daily scheduled e2e workflow that
posts to #tooling-team-python via SLACK_WEBHOOK_URL when any matrix
combination fails. The message links to the workflow run and lists the
failed jobs. Manual workflow_dispatch runs are skipped to avoid noise.
@vdusek vdusek added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels Apr 27, 2026
@vdusek vdusek self-assigned this Apr 27, 2026
@github-actions github-actions Bot added this to the 139th sprint - Tooling team milestone Apr 27, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.32%. Comparing base (983f14f) to head (a424d98).
⚠️ Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1859      +/-   ##
==========================================
- Coverage   92.41%   92.32%   -0.10%     
==========================================
  Files         158      158              
  Lines       11009    11009              
==========================================
- Hits        10174    10164      -10     
- Misses        835      845      +10     
Flag Coverage Δ
unit 92.32% <ø> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek requested review from Pijukatel and janbuchar and removed request for Pijukatel and janbuchar April 27, 2026 08:35
@vdusek vdusek marked this pull request as draft April 28, 2026 11:46
@vdusek vdusek requested a review from janbuchar April 28, 2026 14:35
@vdusek vdusek marked this pull request as ready for review April 28, 2026 14:35
Copy link
Copy Markdown
Collaborator

@janbuchar janbuchar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vdusek vdusek merged commit 4a7f7c8 into master Apr 29, 2026
32 checks passed
@vdusek vdusek deleted the ci/slack-notify-scheduled-e2e-failures branch April 29, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send Slack notification when scheduled e2e tests fail

3 participants